home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / WIN_PRO / VIEWS.ZIP;1 / CVDZIP.EXE / CVDEMOVW.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-10  |  1.8 KB  |  94 lines

  1. /*
  2.     cvdemovw.h
  3.  
  4.     Main window for the demo
  5.  
  6.     C++/Views 2.0 Demo
  7.     Copyright (c) 1992, by Liant Software Corp.
  8.     ALL RIGHTS RESERVED.
  9.  
  10.     Revision History:
  11.     -----------------
  12. */
  13.  
  14. #ifndef cvdemovw_h
  15. #define cvdemovw_h
  16. #include "mdiappvw.h"
  17.  
  18. class VMenuItem;
  19. class VPopupMenu;
  20. class ToolBar;
  21.  
  22. class ClassView;
  23. class FeatureView;
  24. class IntroView;
  25. class PlatformView;
  26. class SketchView;
  27. class Messenger;
  28.  
  29. class VBrush;
  30. class VFont;
  31.  
  32. class DemoAppView : public VMdiAppView {
  33. private:
  34.     ToolBar           *tools;
  35.  
  36.     VPopupMenu       *fileMenu;
  37.     VPopupMenu       *featureMenu;
  38.     VPopupMenu       *exampleMenu;
  39.  
  40.     VBrush           *toolBrush;
  41.     VFont           *toolFont;
  42.  
  43.     VString            aboutTopic;
  44.     VString            aboutSource;
  45.  
  46. public:
  47.     DemoAppView();
  48.     ~DemoAppView();
  49.  
  50.     VClass *iam();
  51.     boolean free();
  52.  
  53.     ClassView       *classView;
  54.     FeatureView       *featureView;
  55.     PlatformView   *platformView;
  56.     IntroView       *introView;
  57.     SketchView       *sketchView;
  58.  
  59.     unsigned        visitFlag;
  60.  
  61.     boolean menuDialog(VMenuItem*);
  62.     boolean menuFeature(VMenuItem*);
  63.     boolean menuIntro(VMenuItem*);
  64.     boolean menuPlatform(VMenuItem*);
  65.     boolean menuClass(VMenuItem*);
  66.     boolean menuOrder(VMenuItem*);
  67.     boolean menuAbout(VMenuItem*);
  68.     boolean menuAboutCurrWin(VMenuItem*);
  69.     boolean menuExit(VMenuItem*);
  70.     boolean menuSketch(VMenuItem*);
  71.     
  72.     void    init(void);
  73.     void    initWindow(void);
  74.     boolean resized(int, int);
  75.     boolean close(void);
  76.     boolean okToQuit(void);
  77.     void    updateMenu(void);
  78.     void    setAboutNames(char *tpc, char *src);
  79. };
  80.  
  81. /* bit masks for 'visited' flag */
  82. #define    VISIT_CLASS        0x0001
  83. #define    VISIT_FEATURE    0x0002
  84. #define    VISIT_PLATFORM    0x0004
  85. #define    VISIT_DIALOG    0x0008
  86. #define    VISIT_SKETCH    0x0010
  87. #define    VISIT_ABOUT        0x0020
  88.  
  89. extern VClass *DemoAppViewCls;
  90.  
  91. extern Messenger *cvTextFile;
  92.  
  93. #endif /* cvdemovw_h */
  94.